﻿using ExpressesClass.KyApi.Base;
using ExpressesClass.KyApi.billPrint.response;
using ExpressesClass.KyApi.Util;
using Newtonsoft.Json;
using System.Collections.Generic;

namespace ExpressesClass.KyApi.billPrint.request
{
    public class BillPrintReq : KyRequest
    {
        public BillPrintReq()
        {
            this.waybillNumberInfos = new List<WaybillNumberInfos>();
        }
        public string customerCode { get; set; }
        public string platformFlag { get; set; }
        public string templateSizeType { get; set; }
        public List<WaybillNumberInfos> waybillNumberInfos { get; set; }
        public string printClientId { get; set; }
        public int printJJcg { get; set; }
        public int printSon { get; set; }

        public override string GetMethodCode()
        {
            return ConfigUrl.GetMethodCode("PRINT");
        }

        public override string GetTokenUrl()
        {
            return ConfigUrl.GetTokenUrl();
        }

        public override string GetUrl()
        {
            return ConfigUrl.GetUrl();
        }

        public override KyResponse makeResponse(string rsp)
        {
            return JsonConvert.DeserializeObject<BillPrintRsp>(rsp);
        }
    }
}
